<?php
	require($_SERVER["DOCUMENT_ROOT"]."/modules/security_mod.php");
	require($_SERVER["DOCUMENT_ROOT"]."/modules/mission_mod.php");

	$acc = SecurityMod::checkHackerLogin();
	if (is_null($acc)) {
		echo("Invalid credentials");
		exit;
	}

	$res = MissionMod::addMissions($acc->getUniverse(), stripslashes($_REQUEST["missions"]));
	if ($res)
		echo("Ok");
	else
		echo("Internal error");
?>